<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>放大镜效果</title>
    <style>
        *{
            margin:0px;
            padding:0px;
        }
        .smell{
            position:relative;
            width:100px;
            height:140px;
            border:1px solid red;
            float:left;
        }
        .move{
            position:absolute;
            top:0px;
            left:0px;
            width:50px;
            height:50px;
            background:#549fe6;
            border-radius:50%;
            opacity:.6;
            display:none;
        }
        .smellImg{
            width:100%;
            height:100%;
        }
        .big{
            position:relative;
            width:200px;
            height:200px;
            float:left;
            overflow: hidden;
            display:none;
            border:1px solid #6219b6;
        }
        .bigImg{
            position:absolute;
            width:440px;
            height:560px;
            display:block;
        }
    </style>
</head>
<body>
    <div class="smell">
        <img src="images/s1.PNG" class="smellImg">
        <div class="move"></div>
    </div>
    <div class="big">
        <img src="images/s1.PNG" class="bigImg">
    </div>
    <script src="enloge.js"></script>
</body>
</html>